package cn.team.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import cn.team.entity.User;

@Mapper
@Repository
public interface UserMapper {
    User getUser(@Param("username") String username);
    int registerUser(@Param("username") String username, @Param("password") String password,@Param("portraitName")String portraitName);
    User getUserById(@Param("id")int id);
}
